import Vue from 'vue'
import Viewer from 'v-viewer'
import App from './App.vue'
import router from './router'
import store from './store'
import filters from '@/filters'
import '@/plugins'
import './plugins/iview'
import './assets/css/publicStyle.scss'
import 'viewerjs/dist/viewer.css'

Vue.config.productionTip = false


Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.use(Viewer)
Viewer.setDefaults({
  Options: {
    'inline': true,
    'button': true,
    'navbar': true,
    'title': true,
    'toolbar': true,
    'tooltip': true,
    'movable': true,
    'zoomable': true,
    'rotatable': true,
    'scalable': true,
    'transition': true,
    'fullscreen': true,
    'keyboard': true,
    'url': 'data-source',
  }
})

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
